package com.tj.bo.user.client.enums;

/**
 * 此枚举给客户端用
 * User: binary
 * Date: 2020/6/9
 * Time: 下午5:30
 */
public enum UserSocialTypeEnum {

    FACEBOOK("FACEBOOK"),
    GOOGLE("GOOGLE");

    private String type;

    UserSocialTypeEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public UserSocialTypeEnum setType(String type) {
        this.type = type;
        return this;
    }

    public static UserSocialTypeEnum getEnum(String type) {
        UserSocialTypeEnum e = null;
        for (UserSocialTypeEnum enumObj : UserSocialTypeEnum.values()) {
            if (enumObj.getType().equals(type)) {
                e = enumObj;
                break;
            }
        }
        return e;
    }
}
